<?php

class MstatInlineConfig {

    const DATABASE_CONFIG_PATH = '/data/mytvplus/mstat_report_tool/conf/mstat_report_tool_anaylsis_data_db.xml';
    const IMPORT_MSTATONLINE_DB_PATH = '/data/mytvplus/mstat_report_tool/conf/mstat_report_tool_import_mstatinline_db.xml';
    const TMP_CHECK_TABLE_RECORDS_LOG_PATH = '/data/mytvplus/mstat_report_tool/log/lastupdatetime.log';
    const MEMBERSIHP_CONFIG_FILE = '/data/mytvplus/mstat_report_tool/conf/membership_config_db.xml';

    static public $mstat_inline_old_table = 'daily_member_access';
    static public $mstat_inline_new_table = 'member_access_log';
    static public $mstat_inline_member_access = 'member_access_log';
    static public $mstat_inline_member_daily = 'daily_member_log';
	static public $mstat_inline_membership = 'mstat_inline_membership';

    static public function microtime_float() {
        list($usec, $sec) = explode(" ", microtime());
        return ((float)$usec + (float)$sec);
    }

    static public $daily_format_type = array('login'=>1,
                                             'logout'=>5,
                                             'active'=>3,
                                             'confirm'=>2,
                                             'register'=>0,
                                             'expired'=>6,
                                             'expired_confirm'=>4,
                                            );

}

?>
